// 作为Main组件的子页面展示并且在左侧菜单显示的路由写在appRouter里
export default [
    {
        path: '/ms',
        icon: 'key',
        name: 'ms',
        title: '系统管理-app',
        component: resolve => { require(['@/views/Main.vue'], resolve);},
        children: [
            { path: 'menus', title: '菜单管理', name: 'menus', component: resolve => { require(['@/views/ms/menus.vue'], resolve); } },
            { path: 'user', title: '用户管理', name: 'user', component: resolve => { require(['@/views/ms/user.vue'], resolve); } },
            { path: 'role', title: '角色管理', name: 'role', component: resolve => { require(['@/views/ms/role.vue'], resolve); } },
            { path: 'permission', title: '权限管理', name: 'permission', component: resolve => { require(['@/views/ms/permission.vue'], resolve); } },
        ]
    },
    {
        path: '/lock',
        icon: 'key',
        name: 'lock',
        title: '智能门锁',
        component: resolve => { require(['@/views/Main.vue'], resolve);},
        children: [
            { path: 'index', title: '错误页面', name: 'lock_index', component: resolve => { require(['@/views/lock/lock.vue'], resolve); } }
        ]
    },
    {
        path: '/gateway',
        icon: 'key',
        name: 'gateway',
        title: '智能网关',
        component: resolve => { require(['@/views/Main.vue'], resolve);},
        children: [
            { path: 'index', title: '错误页面', name: 'gateway_index', component: resolve => { require(['@/views/gateway/index.vue'], resolve); } }
        ]
    }
]